Beispiel #1
0
        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);
        }
Beispiel #2
0
 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)
 {
 }
Beispiel #6
0
 public RegionController(MyMisContext context) : base(context)
 {
 }
Beispiel #7
0
 public NotificationController(MyMisContext context, IEmailConfiguration emailConfig, IEmailService emailService) : base(context)
 {
     _emailConfig  = emailConfig;
     _emailService = emailService;
 }
Beispiel #8
0
 internal static string ConverCenterNameForRegionHQ(string centerName, int regionID, MyMisContext context)
 {
     //if need to convert names
     return(centerName);
 }