Ejemplo n.º 1
0
 public ActionResult Delete(int id)
 {
     if (_applicantManager.Get(id) == null)
     {
         return(NotFound());
     }
     _applicantManager.Delete(id);
     return(NoContent());
 }
Ejemplo n.º 2
0
        public void Delete(int id)
        {
            _LogHelper.Information(String.Format("Delete regqest 'api/applicant has come.'"));

            try
            {
                _ApplicantManager.Delete(id);
            }
            catch (Exception ex)
            {
                _LogHelper.Error(String.Format("Delete regqest 'api/applicant got the followwing error: {0}", ex.ToString()));
                throw new ApiException(ex.Message, System.Net.HttpStatusCode.BadRequest);
            }
        }