public IActionResult Put([FromBody] Customer customer) { var data = _customerBL.UpdateData(customer); switch (data.MisaCode) { case Misa.CukCuk.Common.Enum.Enumarations.MisaCode.Success: return(Ok(data)); case Misa.CukCuk.Common.Enum.Enumarations.MisaCode.Validate: return(BadRequest(data)); case Misa.CukCuk.Common.Enum.Enumarations.MisaCode.Error: return(BadRequest(data)); case Misa.CukCuk.Common.Enum.Enumarations.MisaCode.Exception: return(BadRequest(data)); default: return(NoContent()); } }