//AddressMap public IHttpActionResult AddAddressMap([FromBody] string postOffice, string domain, string mailboxName) { try { if (!ModelState.IsValid) { JSendBadRequest(ModelState); } var res = _mailService.AddAddressMap(postOffice, domain, mailboxName); return(JSendCreated("", res)); } catch (Exception ex) { return(JSendError(HttpStatusCode.InternalServerError, ex.Message)); } }