Exemple #1
0
        public string LichHen_update(LichHenModel m)
        {
            string dt;

            try
            {
                var sp_result = db.LichHen_update(
                    int.Parse(m.ID_lich_hen),
                    int.Parse(m.Active),
                    m.Ly_do_huy,
                    m.ModifyUser
                    );

                if (sp_result.FirstOrDefault().Updated == 1)
                {
                    dt = "true";
                }
                else
                {
                    dt = "Cập nhật trạng thái thất bại";
                }
            }
            catch (Exception e)
            {
                dt = "Đã có lỗi tại SinhVien_update" + e;
            }
            return(dt);
        }