public void AddParentTaskDetails(string ParentTaskName)
 {
     using (var context = new FSD_SBAEntities())
     {
         int i = context.AddParentTaskDetails(ParentTaskName);
         context.SaveChangesAsync();
     }
 }
 public void EditTaskDetails(TaskDetails taskDetail)
 {
     using (var context = new FSD_SBAEntities())
     {
         int i = context.UpdateTaskDetails(taskDetail.ProjectName, taskDetail.TaskId, taskDetail.TaskName, taskDetail.ParentTaskName, taskDetail.StartDate, taskDetail.EndDate, taskDetail.Priority, taskDetail.UserID, taskDetail.IsEnded);
         context.SaveChangesAsync();
     }
 }
 public void DeleteProject(int ProjectID)
 {
     using (var context = new FSD_SBAEntities())
     {
         int i = context.DeleteProject(ProjectID);
         context.SaveChangesAsync();
     }
 }
 public void EditProjectDetail(ProjectDetails projectDetail)
 {
     using (var context = new FSD_SBAEntities())
     {
         int i = context.UpdateProjectDetails(projectDetail.ProjectId, projectDetail.ProjectName, projectDetail.StartDate, projectDetail.EndDate, projectDetail.Priority, projectDetail.UserID);
         context.SaveChangesAsync();
     }
 }
 public void DeleteUser(int UserId)
 {
     using (var context = new FSD_SBAEntities())
     {
         int i = context.DeleteUser(UserId);
         context.SaveChangesAsync();
     }
 }
 public void EditUserDetails(UserDetails userDetail)
 {
     using (var context = new FSD_SBAEntities())
     {
         int i = context.UpdateUserDetails(userDetail.UserID, userDetail.FirstName, userDetail.LastName, userDetail.EmployeeID);
         context.SaveChangesAsync();
     }
 }
 public string EndTaskDetails(string TaskID)
 {
     using (var context = new FSD_SBAEntities())
     {
         int i = context.EndTask(Int32.Parse(TaskID));
         context.SaveChangesAsync();
     }
     return(TaskID);
 }