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()); }
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); }