public HttpResponseMessage CreateAsset(HttpRequestMessage request, [FromBody] Asset obj) { HttpResponseMessage response = new HttpResponseMessage(); obj.CreatedBy = "1"; response = _assetProcess.CreateAsset(obj); return(response); }
public HttpResponseMessage CreateAsset(HttpRequestMessage request, [FromBody] AssetViewModel obj) { HttpResponseMessage response = new HttpResponseMessage(); obj.CreatedBy = User.Identity.Name; response = _assetProcess.CreateAsset(obj); return(response); }