public async Task <IHttpActionResult> Close(string dealId)
        {
            string         username = HttpContext.Current.User.Identity.Name;
            IdentityResult result   = await _repo.CloseDeal(username, dealId);

            IHttpActionResult errorResult = GetErrorResult(result);

            return(errorResult == null?Ok() : errorResult);
        }