public string LichNghi_insert(LichNghiModel m) { string dt; try { var sp_result = db.LichNghi_insert( m.ID_gv, DateTime.Parse(m.Ngay_nghi) ); if (sp_result.FirstOrDefault().Identity <= 0) { dt = "Thêm thất bại"; } else { dt = "Thêm thành công"; } } catch (Exception e) { dt = "Đã có lỗi tại LichNghi_insert" + e; } return(dt); }