public CRUDResult <int> Create(TestInsertReq obj) { var Test = _repository.Value.Insert <Test>(new Test() { Code = obj.Code }); return(new CRUDResult <int>() { Data = Test.Id, StatusCode = CRUDStatusCodeRes.ReturnWithData }); }
public IHttpActionResult Create(TestInsertReq obj) { var result = _TestService.Create(obj); return(ApiHelper.ReturnHttpAction(result, this)); }