public IHttpActionResult GetAllProtocol(MultiDataModel multidata) { BoardProtocol data = JsonConvert.DeserializeObject <BoardProtocol>(multidata.String1); var result = ProtocolBL.GetAllProtocol(data); return(Ok(result)); }
private string GetProtocolId(ScheduleForProcess record) { var componentsBd = _medicalExamBl.GetAllComponent(); var protocolsBd = _protocolBl.GetAllProtocol(); var protocolId = ProtocolExist(record, protocolsBd); if (string.IsNullOrEmpty(protocolId)) { protocolId = CreateProtocol(record, componentsBd); } return(protocolId); }