public static string DELCHUYENXE(string machuyenxe) { ChuyenXeRepository cxRepo = new ChuyenXeRepository(); ChuyenXe cx = cxRepo.Find(int.Parse(machuyenxe)); var res = cxRepo.Remove(cx); cxRepo.Save(); return(JsonConvert.SerializeObject(res)); }