Beispiel #1
0
        public IActionResult DeleteTarget(int id)
        {
            var res = _targetService.DeleteTarget(id);

            if (res)
            {
                return(Ok(res));
            }
            else
            {
                return(BadRequest(ErrorMessages.DeleteDataError));
            }
        }
Beispiel #2
0
 public void DeleteTarget(int id)
 {
     _targetService.DeleteTarget(id);
 }