public static bool SaveTransMoney(List <tbl_UserTransportation> list) { try { foreach (var item in list) { if (DALUserPermission.Exist(item.Rank.ToString())) { DALUserPermission.UpdateTrans(item); } else { DALUserPermission.AddUseTrans(item); } } return(true); } catch (Exception em) { return(false); } }