Exemplo n.º 1
0
        public async Task <GenericResponse <bool> > AddLike(string id)
        {
            var vloResponse = new GenericResponse <bool>();

            try
            {
                vloResponse.Status   = HttpStatusCode.OK;
                vloResponse.Response = await _photoRepository.AddLike(id);
            }
            catch (Exception ex)
            {
                vloResponse.Status   = HttpStatusCode.BadRequest;
                vloResponse.Response = false;
            }

            return(vloResponse);
        }