public void UpdatePropertyLend(PropertyLend p) { if (p == null) { throw new ArgumentNullException("property is null"); } _propertyLendRepository.Update(p); _eventPublisher.EntityUpdated(p); }
public void DeletePropertyLend(PropertyLend p) { if (p == null) { throw new ArgumentNullException("property is null"); } p.Deleted = true; UpdatePropertyLend(p); }
public static PropertyLend ToEntity(this PropertyLendModel createmodel, PropertyLend destination) { return(createmodel.MapTo(destination)); }
public static PropertyLendApproveListModel ToListModel(this PropertyLend entity) { return(entity.MapTo <PropertyLend, PropertyLendApproveListModel>()); }
public static PropertyLendModel ToModel(this PropertyLend entity) { return(entity.MapTo <PropertyLend, PropertyLendModel>()); }