public async Task <ActionResult <RSV_Global <Employee> > > Create([FromBody] Employee employee) { RSV_Global <Employee> infoResult = new RSV_Global <Employee>(); try { infoResult = await _employeeBL.Create(employee); if (infoResult == null) { return(BadRequest(new { message = "error" })); } return(Ok(infoResult)); } catch (Exception ex) { infoResult.Error = new Error(ex, $"Se presento un error en el metodo {((MethodInfo)MethodBase.GetCurrentMethod()).Name.ToString()}. {ex.Message}"); infoResult.Success = false; } return(infoResult); }