public static CompanyModelDto ToDto(this CompanyModel model) { var dto = new CompanyModelDto { Guid = model.Guid, Name = model.Name, Co_FounderName = model.Co_FounderName, FounderName = model.FounderName }; return(dto); }
public static CompanyModel ToModel(this CompanyModelDto dto) { var model = new CompanyModel { Guid = dto.Guid, Name = dto.Name, Co_FounderName = dto.Co_FounderName, FounderName = dto.FounderName }; return(model); }