public static void MapTo(this ContenderList list, CandidateListEntity entity) { entity.name = list.Name; entity.ownerId = list.OwnerId; entity.sharedWithId = list.SharedWithId; entity.createdTime = list.CreatedTime; entity.isDeleted = list.IsDeleted; entity.listType = list.ListType; }
public static CandidateListEntity Map(this ContenderList list) { var entity = new CandidateListEntity { id = list.Id }; list.MapTo(entity); return(entity); }
private static bool CanAccessFolder(IEmployer employer, ContenderList folder, bool allowDeleted) { if (employer == null) { return(false); } if (folder == null) { return(false); } if (!allowDeleted && folder.IsDeleted) { return(false); } return(true); }
private static bool CanAccessFlagList(IEmployer employer, ContenderList list, bool allowDeleted) { if (employer == null) { return(false); } if (list == null) { return(false); } if (!allowDeleted && list.IsDeleted) { return(false); } return(true); }
void IContenderListsCommand.UpdateList(ContenderList contenderList) { contenderList.Validate(); _repository.UpdateList(contenderList); }
void IContenderListsCommand.CreateList(ContenderList contenderList) { contenderList.Prepare(); contenderList.Validate(); _repository.CreateList(contenderList); }