public IActionResult Delete(int FooterId) { Footer entity = repository.GetById(FooterId); if (entity != null) { repository.Delete(entity); repository.Save(); } return(RedirectToAction("Index")); }
public Footer Delete(int id) { return(_footerRepository.Delete(id)); }
public void Delete(int id) { _footerRepository.Delete(id); }
public void Delete(long tenantId, long elementId, IUnitOfWork unitOfWork = null) { _footerRepository.Delete(tenantId, elementId, unitOfWork); }
public async Task <Footer> Delete(int id) { return(await Task.FromResult(_footerRepository.Delete(id))); }
public Footer Delete(int id) { return(sizeRepository.Delete(id)); }