public ActionResult GetEmailInterfaceLogs([DataSourceRequest] DataSourceRequest request, int periodSelectionKind, int?userId = null, string status = null) { EmailEnums.eSendInterfaceStatus?sendStatus = null; try { if (!string.IsNullOrEmpty(status)) { sendStatus = Utils.ParseEnum <EmailEnums.eSendInterfaceStatus>(status); } } catch (Exception) { sendStatus = null; } var kind = periodSelectionKind.ToPeriodSelectionKind(); var list = _reportServices.GetEmailInterfaceLogs(kind, userId, sendStatus); return(Json(list.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }