public async Task <IActionResult> IsPatientExistBefore([FromBody] PatientLookUpDTO dto) { var isFound = ps.isPatientExist(dto.Firstname, dto.Lastname, dto.dob, dto.mobilephone, dto.email); if (isFound != null) { _reponse = BaseResponse.GetResponse(isFound, $"the following record already exist", "00"); return(Ok(_reponse)); } _reponse = BaseResponse.GetResponse(false, "you can continue", "99"); return(Ok(_reponse)); }