示例#1
0
 public void UpdateIncreamentTableData(Increament increament)
 {
     increament.UpdatedBy   = CreatedBy;
     increament.UpdatedDate = DateTime.Now;
     GetUnitOfWork().IncreamentRepository.Update(increament);
     GetUnitOfWork().Save();
 }
 public IHttpActionResult UpdateIncreamentTableData([FromBody] Increament increament)
 {
     if (increament == null)
     {
         return(BadRequest(ActionMessage.NullOrEmptyMessage));
     }
     try
     {
         AdminActivities activity = new AdminActivities(new UnitOfWork());
         activity.CreatedBy = User.Identity.GetUserName();
         activity.UpdateIncreamentTableData(increament);
         return(Ok(ActionMessage.SaveMessage));
     }
     catch (Exception EX_NAME)
     {
         return(BadRequest(EX_NAME.Message));
     }
 }
示例#3
0
 public override int GetHashCode()
 {
     return(Start.GetHashCode() + End.GetHashCode() * 13 + Increament.GetHashCode() * 3);
 }