Beispiel #1
0
        public IHttpActionResult Get(int id)
        {
            var user = SliderRepo.Get(id);

            if (user == null)
            {
                return(StatusCode(HttpStatusCode.NoContent));
            }
            return(Ok(SliderRepo.Get(id)));
        }
Beispiel #2
0
 public IHttpActionResult Get(int id)
 {
     return(Ok(SR.Get(id)));
 }