public static void DeleteDoctor(int pId) { if (LUser.FetchByID(pId) != null) { LUser.Delete(pId); } }
public static void UpdateDoctor(LUser pitems) { try { if (LUser.FetchByID(pitems.UserId) != null) { pitems.IsNew = false; pitems.Save(); } } catch (Exception ex) { throw ex; } }