Exemplo n.º 1
0
        public Entity.BaseResponse <bool> Delete(string id)
        {
            if (id == null || id == string.Empty)
            {
                return(new Entity.BaseResponse <bool>(false, "Device Type id required!"));
            }

            Entity.BaseResponse <bool> response = new Entity.BaseResponse <bool>(true);
            try
            {
                var status = _service.Delete(Guid.Parse(id));
                response.IsSuccess = status.Success;
                response.Message   = status.Message;
                response.Data      = status.Success;
            }
            catch (Exception ex)
            {
                base.LogException(ex);
                return(new Entity.BaseResponse <bool>(false, ex.Message));
            }
            return(response);
        }