예제 #1
0
 public bool Delete(string id)
 {
     try
     {
         _databaseContext.Entry(new Rol {
             Id = id
         }).State = EntityState.Deleted;
         _databaseContext.SaveChanges();
     }
     catch (System.Exception)
     {
         return(false);
     }
     return(true);
 }