public CarpoolingModel.Types.GroupType getGroupType(int id) { CarpoolingDAL.GroupType g = new CarpoolingDAL.GroupType(); try { var query = db.GroupTypes.Where(o => o.idGroupType == id).First(); g = query as CarpoolingDAL.GroupType; } catch (Exception) { g = null; } return(RepositoryUtility.createGroupTypeFromDALGType(g)); }
partial void DeleteGroupType(GroupType instance);
partial void UpdateGroupType(GroupType instance);
partial void InsertGroupType(GroupType instance);
public CarpoolingModel.Types.GroupType getGroupType(int id) { CarpoolingDAL.GroupType g = new CarpoolingDAL.GroupType(); try { var query = db.GroupTypes.Where(o => o.idGroupType == id).First(); g = query as CarpoolingDAL.GroupType; } catch (Exception) { g = null; } return RepositoryUtility.createGroupTypeFromDALGType(g); }