public override void IntegratedTest() { var id = _service.Insert(new Gender() { Description = "TESTE" }); _service.Delete(id); }
public IActionResult Remove([FromForm] GenderModel model = null) { if (model == null) { return(this.Ok(new DeleteResponseModel("Can't save items due to missing some information or invalid data", false))); } var results = _logic.Delete(model); return(this.Ok(results)); }
public IHttpActionResult DeleteGender(int id) { Gender s_Gender = _GenderService.GetById(id); if (s_Gender == null) { return(NotFound()); } _GenderService.Delete(s_Gender); return(Ok(s_Gender)); }
public IHttpActionResult Delete(List <string> ids) { return(Ok(_service.Delete(ids))); }