public LabMaster getByLabCode(string code) { var item = _labRepository.Get(it => it.labCode == code && it.labStatus == "Active"); return(item); }