Exemplo n.º 1
0
        public RemoveGymPhotoResponse RemoveGymPhoto(RemoveGymPhotoRequest request)
        {
            var result = base.CreateResponse <RemoveGymPhotoResponse>("删除场馆信息");

            try
            {
                using (var con = new DbConnectionProvider(dbName).GetOpenConnection())
                {
                    var parms = new DynamicParameters();
                    parms.Add("GymID", request.GymID, DbType.Int32);
                    parms.Add("PhotoID", request.PhotoID, DbType.Double);
                    result.Photos = con.Query <PhotoDTO>("sp_RemoveGymPhoto", parms, CommandType.StoredProcedure).ToList();
                }
            }
            catch (Exception ex)
            {
                base.HandleResponseException(ref result, ex);
            }
            return(result);
        }
 public RemoveGymPhotoResponse RemoveGymPhoto(RemoveGymPhotoRequest request)
 {
     return(BasicDataManager.GetInstance().RemoveGymPhoto(request));
 }