public IActionResult Get([FromQuery] string CustomerCode = "", [FromQuery] string FullName = "", [FromQuery] string PhoneNumber = "") { var data = _customerBL.GetDataByOthers(CustomerCode, FullName, PhoneNumber); switch (data.MisaCode) { case Misa.CukCuk.Common.Enum.Enumarations.MisaCode.Success: return(Ok(data.Data)); case Misa.CukCuk.Common.Enum.Enumarations.MisaCode.Validate: return(BadRequest(data.Data)); case Misa.CukCuk.Common.Enum.Enumarations.MisaCode.Error: return(BadRequest(data.Data)); case Misa.CukCuk.Common.Enum.Enumarations.MisaCode.Exception: return(BadRequest(data.Data)); default: return(NoContent()); } }