public void updateCRType(string id, croomtype crt) { croomtype dbcrt = database.croomtypes.First(data => data.idcroomtype == id); dbcrt = crt; database.SaveChanges(); }
public static LessonType ConvertClassroomTypeToLessonType(croomtype type) { return(new LessonType { id = type.idcroomtype, name = type.name }); }
public void deleteCRType(string id) { croomtype crt = database.croomtypes.First(data => data.idcroomtype == id); database.croomtypes.Remove(crt); }
public croomtype getCRType(string id) { croomtype crt = database.croomtypes.First(data => data.idcroomtype == id); return(crt); }
public void insertCRType(ref croomtype crt) { database.croomtypes.Add(crt); database.SaveChanges(); }