Ejemplo n.º 1
0
        public String Getallstaff()
        {
            staffContext context = HttpContext.RequestServices.GetService
                                       (typeof(admins_station.Models.staffContext)) as staffContext;

            return(JsonConvert.SerializeObject(context.Getallstaff(connection)));
        }
Ejemplo n.º 2
0
        public String editstaff(String staffId, String staffdata)
        {
            staffContext context = HttpContext.RequestServices.GetService
                                       (typeof(admins_station.Models.staffContext)) as staffContext;

            return(JsonConvert.SerializeObject(context.editstaff(staffId, staffdata, connection)));
        }
Ejemplo n.º 3
0
        public String deleteStaff(String empolyee_no)
        {
            staffContext context = HttpContext.RequestServices.GetService
                                       (typeof(admins_station.Models.staffContext)) as staffContext;

            return(JsonConvert.SerializeObject(context.deleteStaff(empolyee_no, connection)));
        }
Ejemplo n.º 4
0
        public String Instert(String staffdata)
        {
            staffContext context = HttpContext.RequestServices.GetService
                                       (typeof(admins_station.Models.staffContext)) as staffContext;

            return(JsonConvert.SerializeObject(context.Instert(staffdata, connection, AESpassword)));
        }
Ejemplo n.º 5
0
        public String updatePassword(String empolyee_no, String newpassword)
        {
            staffContext context = HttpContext.RequestServices.GetService
                                       (typeof(admins_station.Models.staffContext)) as staffContext;

            return(JsonConvert.SerializeObject(context.updatePassword(empolyee_no, newpassword, connection)));
        }
Ejemplo n.º 6
0
        public String login(String empolyee_no, String password)
        {
            staffContext context = HttpContext.RequestServices.GetService
                                       (typeof(admins_station.Models.staffContext)) as staffContext;

            return(JsonConvert.SerializeObject(context.login(empolyee_no, password, connection, AESpassword)));
        }