public static AddMedicalfileCommand ToAddMedicalfileCommand(this JObject jObj, string prescriberId) { var result = new AddMedicalfileCommand { PrescriberId = prescriberId }; var values = jObj.ToObject <Dictionary <string, object> >(); if (values.TryGet(MedikitApiConstants.MedicalfileNames.PatientId, out string patientId)) { result.PatientId = patientId; } return(result); }
public Task <GetMedicalfileResult> AddMedicalfile(AddMedicalfileCommand command, CancellationToken token) { return(_mediator.Send(command, token)); }