public ActionResult Delete(string id) { var knowledgeAreaRepository = new KnowledgeAreaRepository(_context); knowledgeAreaRepository.Delete(new Guid(id)); _context.Save(_loggedUser); return(new HttpStatusCodeResult(HttpStatusCode.OK)); }
public void Eliminar(int id) { knowledge_areas oKnowledgeArea = new knowledge_areas { knowledge_area_id = id, }; oRepositorio.Delete(oKnowledgeArea); oUnitOfWork.SaveChanges(); }