Пример #1
0
 public string update(int id, bool status)
 {
     try
     {
         objcommondb.UpdateTodoStatus(id, status);
         return("Update SuccessFully.");
     }
     catch (DbUpdateConcurrencyException)
     {
         throw;
     }
 }
 public string UpdateTask(int id, string Status = "true")
 {
     try
     {
         CommonDb objcommon = new CommonDb();
         objcommon.UpdateTodoStatus(id, Convert.ToBoolean(Status));
         return("Done");
     }
     catch (DbUpdateConcurrencyException s)
     {
         return(s.Message.ToString());
     }
 }