public static DateFromToDateViewModel ParseDates(string dateFrom, string dateTo) { DateTime?DateFrom = null; DateTime?DateTo = null; if (string.IsNullOrEmpty(dateFrom) == false) { DateFrom = MyGlobal.ParseIranianDate(dateFrom); } if (string.IsNullOrEmpty(dateTo) == false) { DateTo = MyGlobal.ParseIranianDate(dateTo).AddDays(1); } return(new DateFromToDateViewModel { DateFrom = DateFrom, DateTo = DateTo, }); }
public static string GetTelegramChatId(string address) { return(MyGlobal.SplitAndGetRest(address, "t.me/")); }