/// <summary> /// Deletes a UserRequest from the Database /// </summary> /// <param name="pDBContext">The database in which to delete the UserREquest from</param> /// <param name="pRequest">The UserRequest to delete</param> /// <returns></returns> public static bool DeleteRequest(opendkpContext pDBContext, UserRequests pRequest) { bool vReturn = false; try { pDBContext.Remove(pRequest); pDBContext.SaveChanges(); vReturn = true; } catch (Exception vException) { Console.WriteLine("Error Inserting AdminRequest: " + vException); } return(vReturn); }