Exemple #1
0
 /// <summary>
 /// Update diaryEnt table
 /// </summary>
 /// <param name="diaryEnt"></param>
 /// <returns></returns>
 public int UpdateDiaryEnt(DieryEntInfoModel diaryEnt)
 {
     return
         (Query <int>("Update_DieryEnt", new
     {
         ServiceID = diaryEnt.ServiceId,
         CustomerID = diaryEnt.CustomerId,
         ItemCondition = diaryEnt.ItemCondition,
         UserID = diaryEnt.UserID,
         EngineerId = diaryEnt.EngineerId,
         IsUpdateStatus = diaryEnt.IsUpdateStatus,
         StatusId = diaryEnt.StatusId
     }, commandType: CommandType.StoredProcedure).FirstOrDefault());
 }
Exemple #2
0
 /// <summary>
 /// Update diary end and service status
 /// </summary>
 /// <param name="diaryEnt">diary ent</param>
 /// <returns></returns>
 public int UpdateDaryEnt(DieryEntInfoModel diaryEnt)
 {
     return(Repository.UpdateDiaryEnt(diaryEnt));
 }