public IHttpActionResult UpdateTask(TaskModel task)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            //UserModel userModel = pmService.GetUserById(user.UserId);
            //if (userModel == null)
            //{
            //    return BadRequest();
            //}
            var result = pmService.UpdateTaks(task);

            if (result != null)
            {
                return(StatusCode(HttpStatusCode.OK));
            }
            return(BadRequest());
        }