Пример #1
0
        public HttpResponseMessage CreateAsset(HttpRequestMessage request, [FromBody] Asset obj)
        {
            HttpResponseMessage response = new HttpResponseMessage();

            obj.CreatedBy = "1";
            response      = _assetProcess.CreateAsset(obj);
            return(response);
        }
Пример #2
0
        public HttpResponseMessage CreateAsset(HttpRequestMessage request, [FromBody] AssetViewModel obj)
        {
            HttpResponseMessage response = new HttpResponseMessage();

            obj.CreatedBy = User.Identity.Name;
            response      = _assetProcess.CreateAsset(obj);
            return(response);
        }