Exemple #1
0
        public IActionResult Delete(int id)
        {
            bool result = applicantManager.Delete(id);

            if (result)
            {
                logger.Information($"Apllicant was deleted successfully with Id:{id}");
                return(Ok());
            }
            else
            {
                logger.Warning("Failed to deleted applicant");
                return(BadRequest());
            }
        }