public async Task <IActionResult> DeleteApply(int id)
 {
     return(await _appliesRepository.DeleteAppliesAsync(id) == true?
            Ok() : (IActionResult)BadRequest());
 }
Exemplo n.º 2
0
        public async Task <IActionResult> Delete(int applyId)
        {
            await _appliesRepository.DeleteAppliesAsync(applyId);

            return(RedirectToAction("Index"));
        }