Beispiel #1
0
 public WriteIRepository(OCRDbContext context)
 {
     _context = context;
 }
Beispiel #2
0
 public ReadRepository(OCRDbContext context)
 {
     _context = context;
 }
Beispiel #3
0
        public JsonResult <DataSet> GetMenu(string username)
        {
            var menu = OCRDbContext.GetMenu(username);

            return(Json <DataSet>(menu));
        }
Beispiel #4
0
        public JsonResult <string> Login(string user, string pwd)
        {
            string errorCode = OCRDbContext.Login(user, pwd).ToString();

            return(Json <string>(errorCode));
        }