public void UpdatePropertyAllot(PropertyAllot p) { if (p == null) { throw new ArgumentNullException("property is null"); } _propertyAllotRepository.Update(p); _eventPublisher.EntityUpdated(p); }
public void DeletePropertyAllot(PropertyAllot p) { if (p == null) { throw new ArgumentNullException("property is null"); } p.Deleted = true; UpdatePropertyAllot(p); }
public static PropertyAllot ToEntity(this PropertyAllotModel createmodel, PropertyAllot destination) { return(createmodel.MapTo(destination)); }
public static PropertyAllotApproveListModel ToListModel(this PropertyAllot entity) { return(entity.MapTo <PropertyAllot, PropertyAllotApproveListModel>()); }