public void GetSectionsPollTest() { var myWarch = new Stopwatch(); myWarch.Start(); var n = t.GetSectionsPoll(Guid.Parse("D308AB3B-D3F2-4FB0-B163-0010584015BC"), Guid.Parse("3BBFAAF6-C41D-4161-056B-08D4805CE060")); myWarch.Stop(); Assert.IsTrue(n != null); }
public JsonResult Get(Guid idTask) { try { var model = _taskCampaignBusiness.GetSectionsPoll(idTask, _idAccount); JSonConvertUtil.Convert(model); return(Json(model)); } catch (Exception e) { _logger.LogError(new EventId(0, "Error Index"), e.Message); return(null); } }