public static externalDTO.UserOnAddress MapFromBLL(internalDTO.UserOnAddress userOnAddress) { var res = userOnAddress == null ? null : new externalDTO.UserOnAddress { Id = userOnAddress.Id, Start = userOnAddress.Start, End = userOnAddress.End, AddressId = userOnAddress.AddressId, AppUserId = userOnAddress.AppUserId, Address = AddressMapper.MapFromBLL(userOnAddress.Address), AppUser = AppUserMapper.MapFromBLL(userOnAddress.AppUser) }; return(res); }
public static externalDTO.Identification MapFromBLL(internalDTO.Identification identification) { var res = identification == null ? null : new externalDTO.Identification { Id = identification.Id, DocNumber = identification.DocNumber, Start = identification.Start, End = identification.End, Comment = identification.Comment, AppUserId = identification.AppUserId, AppUser = AppUserMapper.MapFromBLL(identification.AppUser) }; return(res); }
public static externalDTO.Review MapFromBLL(internalDTO.Review review) { var res = review == null ? null : new externalDTO.Review { Id = review.Id, Rating = review.Rating, ReviewComment = review.ReviewComment, ReviewGiverId = review.ReviewGiverId, ReviewReceiverId = review.ReviewReceiverId, ReviewGiver = AppUserMapper.MapFromBLL(review.ReviewGiver), ReviewReceiver = AppUserMapper.MapFromBLL(review.ReviewReceiver) }; return(res); }
public static externalDTO.Comment MapFromBLL(internalDTO.Comment comment) { var res = comment == null ? null : new externalDTO.Comment { Id = comment.Id, Timestamp = comment.Timestamp, CommentValue = comment.CommentValue, FoodItemId = comment.FoodItemId, AppUserId = comment.AppUserId, AppUser = AppUserMapper.MapFromBLL(comment.AppUser) }; return(res); }
public static externalDTO.UserSkill MapFromBLL(internalDTO.UserSkill userSkill) { var res = userSkill == null ? null : new externalDTO.UserSkill { Id = userSkill.Id, Start = userSkill.Start, End = userSkill.End, SkillId = userSkill.SkillId, AppUserId = userSkill.AppUserId, Skill = SkillMapper.MapFromBLL(userSkill.Skill), AppUser = AppUserMapper.MapFromBLL(userSkill.AppUser) }; return(res); }
public static externalDTO.UserTask MapFromBLL(internalDTO.UserTask userTask) { var res = userTask == null ? null : new externalDTO.UserTask { Id = userTask.Id, Start = userTask.Start, End = userTask.End, TaskId = userTask.TaskId, TaskGiverId = userTask.TaskGiverId, TaskerId = userTask.TaskerId, TaskerTask = TaskerTaskMapper.MapFromBLL(userTask.TaskerTask), TaskGiver = AppUserMapper.MapFromBLL(userTask.TaskGiver), Tasker = AppUserMapper.MapFromBLL(userTask.Tasker) }; return(res); }
public static externalDTO.Invoice MapFromBLL(internalDTO.Invoice invoice) { var res = invoice == null ? null : new externalDTO.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.MapFromBLL(invoice.AppUser), }; return(res); }