public HttpResponseMessage Get(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return new HttpResponseMessage()
                       {
                           StatusCode = HttpStatusCode.BadRequest
                       }
            }
            ;

            ClaimsPrincipal p        = RequestContext.Principal as ClaimsPrincipal;
            Register        register = RegisterDA.GetRegister(Convert.ToInt32(id), p.Claims);

            if (register == null)
            {
                return new HttpResponseMessage()
                       {
                           StatusCode = HttpStatusCode.NotFound
                       }
            }
            ;

            HttpResponseMessage response = new HttpResponseMessage();
            HttpContent         content  = new ObjectContent(typeof(Register), register, new JsonMediaTypeFormatter());

            response.Content    = content;
            response.StatusCode = HttpStatusCode.OK;
            return(response);
        }
 public Registers Get(int id)
 {
     return(RegisterDA.GetRegister(id));
 }
        // GET: api/Register/5
        public Register Get(int id)
        {
            ClaimsPrincipal p = RequestContext.Principal as ClaimsPrincipal;

            return(RegisterDA.GetRegister(id, p.Claims));
        }