public IActionResult NewClients(string when) { DateTime dt = DateTime.Today; if (when != "now") { dt = Convert.ToDateTime(when); } int cnt = _pfd.GetNewClientsCount(dt); return(Ok(cnt)); }