public String Getallstaff() { staffContext context = HttpContext.RequestServices.GetService (typeof(admins_station.Models.staffContext)) as staffContext; return(JsonConvert.SerializeObject(context.Getallstaff(connection))); }
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))); }
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))); }
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))); }
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))); }
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))); }