public SimpleResponse Delete(LanguageDto dto) { var response = new SimpleResponse(); try { var model = SimpleMapper.Map <LanguageDto, LanguageViewModel>(dto); response = iLanguageBusiness.Delete(model); } catch (Exception ex) { response.ResponseCode = BusinessResponseValues.InternalError; response.ResponseMessage = "Silme iþleminde hata oluþtu."; SimpleFileLogger.Instance.Error(ex); } return(response); }
public ActionResult DeletePost(int languageId) { var response = iLanguageBusiness.Delete(languageId); if (response.ResponseCode > 0) { return(RedirectToAction("Index")); } else { ModelState.AddModelError(string.Empty, response.ResponseMessage); return(RedirectToAction("Delete", new { languageId })); } }
public SimpleResponse Delete(int languageId) { var result = iLanguageBusiness.Delete(languageId); return(result); }
public IHttpActionResult Delete(int languageId) { var result = iLanguageBusiness.Delete(languageId); return(Json(result)); }