public ResponseWorkerViewModel GetWorkerInfo(string sCode) { WorkerInfo request = new WorkerInfo { Worker = new Worker { Code = sCode } }; var resProductSupplied = _supplyBusinessLogic.Execute(request); if (resProductSupplied.ComputeResult().IsError()) { return(Mappers.SetStatusProperty(new ResponseWorkerViewModel(), resProductSupplied)); } return(Mappers.Get(request)); }