Esempio n. 1
0
        public IHttpActionResult Post(Driver driver)
        {
            try
            {
                var mngr = new DriverManager();
                mngr.Create(driver);

                ApiResponse apiResp = new ApiResponse
                {
                    Message = "El chofer  ha sido creado exitosamente"
                };

                return(Ok(apiResp));
            }
            catch (BusinessException bex)
            {
                return(InternalServerError(new Exception(bex.ExceptionId + "-" + bex.AppMessage.Message)));
            }
        }
Esempio n. 2
0
 public void SetUp()
 {
     driver = DriverManager.Create();
 }