public static Domain.Sale MapFromDAL(DAL.App.DTO.DomainLikeDTO.Sale sale) { var res = sale == null ? null : new Domain.Sale { Id = sale.Id, Description = new MultiLangString(sale.Description), AppUserId = sale.AppUserId, AppUser = AppUserMapper.MapFromDAL(sale.AppUser), SaleInitialCreationTime = sale.SaleInitialCreationTime, }; return(res); }
public static internalDTO.AppUserInPosition MapFromDAL(externalDTO.AppUserInPosition appUserInPosition) { var res = appUserInPosition == null ? null : new internalDTO.AppUserInPosition { Id = appUserInPosition.Id, AppUserId = appUserInPosition.AppUserId, AppUser = AppUserMapper.MapFromDAL(appUserInPosition.AppUser), AppUserPositionId = appUserInPosition.AppUserPositionId, AppUserPosition = AppUserPositionMapper.MapFromDAL(appUserInPosition.AppUserPosition), From = appUserInPosition.From, Until = appUserInPosition.Until }; return(res); }
public static Domain.UserOnAddress MapFromDAL(DAL.App.DTO.UserOnAddress userOnAddress) { var res = userOnAddress == null ? null : new Domain.UserOnAddress { Id = userOnAddress.Id, Start = userOnAddress.Start, End = userOnAddress.End, AddressId = userOnAddress.AddressId, AppUserId = userOnAddress.AppUserId, Address = AddressMapper.MapFromDAL(userOnAddress.Address), AppUser = AppUserMapper.MapFromDAL(userOnAddress.AppUser) }; return(res); }
public static Domain.UserSkill MapFromDAL(DAL.App.DTO.UserSkill userSkill) { var res = userSkill == null ? null : new Domain.UserSkill { Id = userSkill.Id, Start = userSkill.Start, End = userSkill.End, SkillId = userSkill.SkillId, AppUserId = userSkill.AppUserId, Skill = SkillMapper.MapFromDAL(userSkill.Skill), AppUser = AppUserMapper.MapFromDAL(userSkill.AppUser) }; return(res); }
public static Domain.Review MapFromDAL(DAL.App.DTO.Review review) { var res = review == null ? null : new Domain.Review { Id = review.Id, Rating = review.Rating, ReviewComment = new Domain.MultiLangString(review.ReviewComment), ReviewGiverId = review.ReviewGiverId, ReviewReceiverId = review.ReviewReceiverId, ReviewGiver = AppUserMapper.MapFromDAL(review.ReviewGiver), ReviewReceiver = AppUserMapper.MapFromDAL(review.ReviewReceiver) }; return(res); }
public static Domain.Identification MapFromDAL(DAL.App.DTO.Identification identification) { var res = identification == null ? null : new Domain.Identification { Id = identification.Id, DocNumber = identification.DocNumber, Start = identification.Start, End = identification.End, Comment = identification.Comment, AppUserId = identification.AppUserId, AppUser = AppUserMapper.MapFromDAL(identification.AppUser) }; return(res); }
public static Domain.UserTask MapFromDAL(DAL.App.DTO.UserTask userTask) { var res = userTask == null ? null : new Domain.UserTask { Id = userTask.Id, Start = userTask.Start, End = userTask.End, TaskId = userTask.TaskId, TaskGiverId = userTask.TaskGiverId, TaskerId = userTask.TaskerId, TaskerTask = TaskerTaskMapper.MapFromDAL(userTask.TaskerTask), TaskGiver = AppUserMapper.MapFromDAL(userTask.TaskGiver), Tasker = AppUserMapper.MapFromDAL(userTask.Tasker) }; return(res); }
public static Domain.Invoice MapFromDAL(DAL.App.DTO.Invoice invoice) { var res = invoice == null ? null : new Domain.Invoice { Id = invoice.Id, InvoiceNumber = invoice.InvoiceNumber, Date = invoice.Date, TotalWithVAT = invoice.TotalWithVAT, TotalWithoutVAT = invoice.TotalWithoutVAT, VAT = invoice.VAT, Comment = invoice.Comment, AppUserId = invoice.AppUserId, AppUser = AppUserMapper.MapFromDAL(invoice.AppUser), }; return(res); }