public ActionResult Delete(Guid id, string type, bool?finish, bool?accept, string displaytype,
                                   int pageIndex = 1)
        {
            switch (type)
            {
            case "Delete":
                _iProjectTaskService.Delete(id);
                break;

            case "Accept":

                _iProjectTaskService.Accept(id, accept != null && accept.Value);

                break;

            case "Finish":
                _iProjectTaskService.Finish(id, finish != null && finish.Value);
                finish = !finish;
                break;

            default:

                break;
            }

            _unitOfWork.Commit();
            return(RedirectToAction("Index", new { displaytype, finish, pageIndex }));
        }
 public ActionResult Accept(Guid id)
 {
     _iProjectTaskService.Accept(id, true);
     _unitOfWork.Commit();
     return(Content("True"));
 }