public static ViewModels.PersonRating GetDto(Models.ViewPersonRating entity) { var result = new ViewModels.PersonRating(); FillDto(entity, result); return(result); }
public static void FillDto(Models.ViewPersonRating entity, ViewModels.PersonRating viewpersonrating) { viewpersonrating.Id = entity.Id; viewpersonrating.PersonId = entity.PersonId; viewpersonrating.AircraftTypeId = entity.AircraftTypeId; viewpersonrating.RatingId = entity.RatingId; viewpersonrating.DateIssue = entity.DateIssue; viewpersonrating.DateExpire = entity.DateExpire; viewpersonrating.CategoryId = entity.CategoryId; viewpersonrating.AircraftType = entity.AircraftType; viewpersonrating.RatingOrganization = entity.RatingOrganization; viewpersonrating.OrganizationId = entity.OrganizationId; viewpersonrating.Category = entity.Category; }