static public RegionCenterName GetName(int centerID, MyMisContext _context) { var nameInfo = (from center in _context.Centers join region in _context.Regions on center.RegionID equals region.RegionID where center.CenterID == centerID select new RegionCenterName { CenterName = center.Name, RegionName = region.Name }).SingleOrDefault(); return(nameInfo); }
public MisBaseController(MyMisContext context) { _context = context; }
public static List <int> MonthStatusGenerated = new List <int>(); //caching the genreated yearmonth public CenterController(MyMisContext context) : base(context) { }
public HomeController(MyMisContext context) : base(context) { }
public MisUserController(MyMisContext context) : base(context) { }
public RegionController(MyMisContext context) : base(context) { }
public NotificationController(MyMisContext context, IEmailConfiguration emailConfig, IEmailService emailService) : base(context) { _emailConfig = emailConfig; _emailService = emailService; }
internal static string ConverCenterNameForRegionHQ(string centerName, int regionID, MyMisContext context) { //if need to convert names return(centerName); }