/// <summary> /// /// </summary> /// <param name="taskModel"></param> /// <returns></returns> public bool SubmitUserDetail(UserModel userModel) { var isSubmitted = false; using (TaskManagerEntities objEntities = new TaskManagerEntities()) { var existingTask = objEntities.INSERT_USER_DETAILS(userModel.User_ID, userModel.First_Name, userModel.Last_Name, userModel.Employee_ID, userModel.Project_ID, userModel.Task_ID, userModel.Action); var updatedRecord = objEntities.SaveChanges(); isSubmitted = existingTask > 0; } return(isSubmitted); }