예제 #1
0
        public override void IntegratedTest()
        {
            var id = _service.Insert(new Gender()
            {
                Description = "TESTE"
            });

            _service.Delete(id);
        }
예제 #2
0
        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));
        }
예제 #3
0
        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));
        }
예제 #4
0
 public IHttpActionResult Delete(List <string> ids)
 {
     return(Ok(_service.Delete(ids)));
 }