Answer the question
In order to leave comments, you need to log in
How to capitalize?
I have some kind of wild blunt. I can imagine how to do it, in my head there is an option how it will look approximately. I know that I need to use ToUpper and Substring. But I can not figure out how to push the condition into the model.
Actually here is a piece when, can someone tell me how to do it right?
var createEAD = new EAD
{
FileNumber = maxNumber,
LastName = model.LastName,
Name = model.Name,
Patronymic = model.Patronymic,
BirthDate = model.BirthDate,
DateOfDismissal = model.DateOfDismissal,
WandrobeNumberID = model.WandrobeNumber.ID,
CellNumberID = model.CellNumber.ID,
StatusEADID = model.StatusEAD.ID,
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question