Exemplo n.º 1
0
        public HttpResponseMessage UpdateAsset(HttpRequestMessage request, [FromBody] Asset obj)
        {
            HttpResponseMessage response = new HttpResponseMessage();

            obj.UpdatedBy = "1";
            response      = _assetProcess.UpdateAsset(obj);
            return(response);
        }
Exemplo n.º 2
0
        public HttpResponseMessage UpdateAsset(HttpRequestMessage request, [FromBody] AssetViewModel obj)
        {
            HttpResponseMessage response = new HttpResponseMessage();

            obj.UpdatedBy = User.Identity.Name;
            response      = _assetProcess.UpdateAsset(obj);
            return(response);
        }