public bool Update(Refund obj) { try { obj.UpdatedDate = DateTime.Now; _db.SubmitChanges(); } catch (Exception ex) { Debug.Print(ex.Message); return(false); } return(true); }