// GET: api/TaskStatus/5
        public HttpResponseMessage Get(int id)
        {
            TaskStatus          taskStatus = context.GetById(id);
            HttpResponseMessage response   = Request.CreateResponse(HttpStatusCode.OK, taskStatus);

            return(response);
        }
        public async Task <IActionResult> GetTaskStatusModel([FromRoute] int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var taskStatusModel = await _repository.GetById(id);

            if (taskStatusModel == null)
            {
                return(NotFound());
            }

            return(Ok(taskStatusModel));
        }