示例#1
0
 public Models.NrtType Post(Models.NrtType request)
 {
     if (request == null || !ModelState.IsValid)
     {
         throw new HttpException((int)HttpStatusCode.BadRequest, "Invalid Request");
     }
     return(nrtTypeService.AddUpdateNtrType(request.CreateFrom()).CreateFromm());
 }
示例#2
0
 public Boolean Delete(Models.NrtType request)
 {
     if (Request == null || !ModelState.IsValid)
     {
         throw new HttpException((int)HttpStatusCode.BadRequest, "Invalid Request");
     }
     nrtTypeService.DeleteNtrType(request.NrtTypeId);
     return(true);
 }