public HttpResponseMessage EditProblem(CalledViewModelUpdate model)
        {

            try
            {
                if (ModelState.IsValid)
                {
                    var called = _appCalled.FindById(model.CalledId);

                    if (called != null)
                    {
                        called.Problem = model.Problem;

                        _appCalled.Update(called);

                        return Request.CreateResponse(HttpStatusCode.OK, "Update Successfully");
                    }
                    else
                    {
                        return Request.CreateResponse(HttpStatusCode.OK, "Error close called");
                    }

                }
                else
                {
                    return ErrorModel();
                }



            }
            catch (Exception e)
            {

                return Request.CreateResponse(HttpStatusCode.BadRequest, e.Message);
            }


        }
        public HttpResponseMessage EditClose(CalledViewModelUpdate model)
        {
            try
            {
                var called = _appCalled.FindById(model.CalledId);

                if (called != null)
                {
                    called.Status = Status.Close;
                    called.DateClose = DateTime.Today;

                    _appCalled.Update(called);

                    return Request.CreateResponse(HttpStatusCode.OK, "Update Successfully");
                }
                else
                {
                    return Request.CreateResponse(HttpStatusCode.OK, "called Not found ");
                }


            }
            catch (Exception e)
            {

                return Request.CreateResponse(HttpStatusCode.BadRequest, e.Message);
            }

        }