Exemplo n.º 1
0
 public TaskDetails GetTaskDetailsById(int taskDetailsId)
 {
     try
     {
         TaskDetails taskDetails = db.TaskDetails.Find(taskDetailsId);
         return(taskDetails);
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 2
0
 //edit task Details
 public int EditTaskDetails(TaskDetails taskDetails)
 {
     try
     {
         db.Entry(taskDetails).State = EntityState.Modified;
         db.SaveChanges();
         return(1);
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 3
0
 //add TaskDetails
 public int AddTaskDetails(TaskDetails taskDetails)
 {
     try
     {
         db.TaskDetails.Add(taskDetails);
         db.SaveChanges();
         return(1);
     }
     catch
     {
         throw;
     }
 }