Ejemplo n.º 1
0
        // DELETE: api/Account/5
        public IHttpActionResult Delete(string id)
        {
            try
            {
                var accMng = new LocationManagement();

                var location = new Location
                {
                    IdLocation = id
                };

                accMng.Delete(location);

                apiResponse = new ApiResponse();

                apiResponse.Message = "Location Deleted";

                return(Ok(apiResponse));
            }
            catch (BusinessException bex)
            {
                return(InternalServerError(new Exception(bex.ExceptionId + "--" + bex.AppMessage.Message)));
            }
        }