示例#1
0
        public void UpdatePropertyLend(PropertyLend p)
        {
            if (p == null)
            {
                throw new ArgumentNullException("property is null");
            }

            _propertyLendRepository.Update(p);
            _eventPublisher.EntityUpdated(p);
        }
示例#2
0
        public void DeletePropertyLend(PropertyLend p)
        {
            if (p == null)
            {
                throw new ArgumentNullException("property is null");
            }

            p.Deleted = true;
            UpdatePropertyLend(p);
        }
示例#3
0
 public static PropertyLend ToEntity(this PropertyLendModel createmodel, PropertyLend destination)
 {
     return(createmodel.MapTo(destination));
 }
示例#4
0
 public static PropertyLendApproveListModel ToListModel(this PropertyLend entity)
 {
     return(entity.MapTo <PropertyLend, PropertyLendApproveListModel>());
 }
示例#5
0
 public static PropertyLendModel ToModel(this PropertyLend entity)
 {
     return(entity.MapTo <PropertyLend, PropertyLendModel>());
 }