Exemplo n.º 1
0
        public HttpResponseMessage UpdateAddress(long companyId, [FromBody] CompanyAddressPoco address)
        {
            var isUpdated = _logic.UpdateAddress(companyId, address);

            if (isUpdated == true)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, address));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.NotModified, address));
            }
        }