public string UpdateEndTask(GET_TASK_DETAILS_Result objGET_TASK_DETAILS_Result) { using (TaskManagerEntities db = new TaskManagerEntities()) { var vUpdateEndTask = db.UPDATE_END_TASK(objGET_TASK_DETAILS_Result.Task_ID, objGET_TASK_DETAILS_Result.End_Date); db.SaveChanges(); return(Convert.ToString(vUpdateEndTask)); } }